
layui.use(['layer','laydate'], function(){
    componentSelectInit(
        {
            ctxPath:'',
            tableName:"wn_farm",
            showValueField:"name",
            valueField:"id",
            selectId:"farmId"  ,
            where:""
        }
        ,function(){
        });
});

var wnMachineDeviceImeiConsoleGrid =new consoleGrid({table_id:"wnMachineDeviceImei"});
wnMachineDeviceImeiConsoleGrid.init();
function wnMachineDeviceImeiTableOperate(value){
return "<button type='button' class='btn btn-xs btn-default command-edit' onclick='consoleOpenWindow(\"wnMachineDeviceImei\",\"/console/wn_machine_device_imei/edit?id="+value+"\",\"编辑\")'><span class='glyphicon glyphicon-pencil'></span></button> ";
}
function wnMachineDeviceImeiLoadParam(params){
params.query=wnMachineDeviceImeiQueryString();

params.deviceNumber = $("#deviceNumber").val();
    params.simcard = $("#simcard").val();
    params.farmId = $("#farmId").val();
return params;
}
function wnMachineDeviceImeiQueryString() {
return "";
}

